//
//  NSData+Base64.m
//  AI
//
//  Created by zjhc on 2018/1/16.
//  Copyright © 2018年 zjhc. All rights reserved.
//

#import "NSData+Base64.h"
#import "NSString+Base64.h"


@implementation NSData (Base64)

- (instancetype) initWithBase64EncodedString:(NSString *)base64String {
    return [self initWithBase64Encoding:[base64String stringPaddedForBase64]];
}

- (NSString *) base64EncodedString {
    return [self base64Encoding];
}

@end


